﻿#include "daily.h"
#include <QtSingleApplication>
#include "head/e_boot.h"
#include "support/mysql_helper.h"

int main(int argc, char *argv[])
{
    SP_Single_Boot

            if(!createConnection(DB_CONFIG))
    {
        QMessageBox::critical(0,QStringLiteral("致命错误"),QStringLiteral("无法连接到数据库！"));
        return EXIT_FAILURE;
    }

    Daily w;
    a.setActivationWindow(&w);
    w.show();

    return a.exec();
}
